package example.com.dagger2.common;

import com.google.gson.Gson;

import javax.inject.Singleton;

import dagger.Component;
import okhttp3.Cache;
import okhttp3.OkHttpClient;

/**
 * Created by Asura on 2016/7/26.
 */
@Singleton
@Component(modules = {AppModule.class, NetworkModule.class, LocalModule.class, DBModule.class})
//依赖的形式@Component(dependencies = AppComponent.class, modules = {NetworkModule.class, LocalModule.class, DBModule.class})
public interface BasicComponent {
    ApiService getApiService();

    ThirdpartyService getThirdpartyService();

    Gson getGson();

    OkHttpClient getOkHttpClient();

    Cache getCache();
}

